FROM java:8

LABEL maintainer="zx<125139887@qq.com>"

RUN mkdir /logs

COPY ssl ssl

COPY ROOT.jar ./app.jar

EXPOSE 5611

ENV JAVA_OPTS="-Duser.timezone=Asia/Shanghai"

# 使用docker环境
ENTRYPOINT ["java","-jar","app.jar","-Xms4096m","-Xmx7168m","--server.port=5611"]


# 保证不停服务进行健康检查 每3秒检查一次,超时2秒,成功才进行容器替换
# 当连续失败retries 指定30次数后，则将容器状态视为unhealthy
HEALTHCHECK --interval=5s --timeout=2s --retries=30 CMD curl http://localhost:5611/interface/healthCheck